package com.annotation.factoryBean;

import org.springframework.beans.factory.FactoryBean;

/**
 * @author: qiuli
 * @date: 2022/1/7 18:26
 * @description:
 */


public class ColorFactoryBean implements FactoryBean<Dog> {
    @Override
    public Dog getObject() throws Exception {
        return new Dog();
    }

    @Override
    public Class<?> getObjectType() {
        return Dog.class;
    }

    @Override
    public boolean isSingleton() {
        return true;
    }
}
